Cherrypick "default" and "changed" flags for settings set#12934
Open
JDevlieghere wants to merge 4 commits intoswiftlang:swift/release/6.4.xfrom
Open
Cherrypick "default" and "changed" flags for settings set#12934JDevlieghere wants to merge 4 commits intoswiftlang:swift/release/6.4.xfrom
settings set#12934JDevlieghere wants to merge 4 commits intoswiftlang:swift/release/6.4.xfrom
Conversation
…3233) Adds a `--defaults`/`-d` flag to `settings show`. This mode will _optionally_ show a setting's default value. In other words, this does not always print a default value for every setting. A default value is not shown when the current value _is_ the default. Note: some setting types do not print empty or invalid values. For these setting types, if the default value is empty or invalid, the same elision logic is applied to printing the default value. (cherry picked from commit 545cda6)
Fixes a few test failures on windows. See llvm#153233 (cherry picked from commit d4b9aca)
(cherry picked from commit 2ca0526)
Add a `--changed`/`-c` flag to `settings show` that restricts the output to settings whose current value differs from the default. This makes it easy to inspect what has been customized in a session or config without scrolling through the full property tree. One thing worth calling out is that this works as expected with explicit property paths, for example you can show only the modified settings belonging to `target`: ``` (lldb) set show -c target target.load-script-from-symbol-file (enum) = true (default: trusted) (lldb) ``` If nothing has been changed, the output is empty: ``` (lldb) sett show -c target.process (lldb) ``` rdar://176483441 (cherry picked from commit 180409d)
Author
|
@swift-ci test |
adrian-prantl
approved these changes
May 8, 2026
kastiglione
approved these changes
May 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
settings showllvm/llvm-project#196390